package cn.zyl.demo.common.tools;

/** AssertTool工具类说明:断言工具类
 * @author wsz
 * @date 2020-08-07
 * @version v1.0
 */
public class AssertTool {
    private AssertTool(){throw new IllegalAccessError("AssertTool");}
    public static void isNull(Object object, String message) {
        if (object != null) { throw new IllegalArgumentException(message); }
    }
    public static void isNotNull(Object object, String message) {
        if (object == null) { throw new IllegalArgumentException(message); }
    }
}